﻿@{
    List<Analysis.Controllers.ProductController.ProductModel> proList = ViewBag.proList;
    int i = 0;
    int maxPage = ViewBag.maxPage;
    int curPage = ViewBag.curPage;
    int pageSize=ViewBag.pageSize;
}
@foreach (Analysis.Controllers.ProductController.ProductModel pro in proList)
{
    i++;
    int paiMing = (curPage-1) * pageSize + i;
    <ul>
        <li class="item-content ranking">
            <div class="item-inner">
                <div class="item-title">排名</div>
                <div class="item-after">@paiMing</div>
            </div>
        </li>
        <li class="item-content">
            <div class="item-inner">
                <div class="item-title"><a data-productid="@pro.ProductId" data-plateformtype="@pro.PlateFormType" data-syjno="@pro.SYJNo" onclick="GoToDetail(this)">@pro.ProductName</a></div>
            </div>
        </li>

        <div class="otherData" style="display:none;">
            <li class="item-content">
                <div class="item-inner">
                    <div class="item-title">单笔消费额</div>
                    <div class="item-after">@pro.CostPerOrder</div>
                </div>
            </li>


            <li class="item-content">
                <div class="item-inner">
                    <div class="item-title">下单笔数</div>
                    <div class="item-after">@pro.CountOrder</div>
                </div>
            </li>
            <li class="item-content">
                <div class="item-inner">
                    <div class="item-title">营业统计</div>
                    <div class="item-after">@pro.Total</div>
                </div>
            </li>
            <li class="item-content">
                <div class="item-inner">
                    <div class="item-title">实时库存</div>
                    <div class="item-after">@pro.StoreNum</div>
                </div>
            </li>
        </div>
        <li class="item-content otherDataShowBtn" onclick="showHide(this)">
            <span class="icon icon-down"></span>
        </li>
    </ul>
    <br />
}
<script type="text/javascript">
    $(function () {
        $("#maxPage").val('@maxPage');
    })
</script>



